package com.tang.system.service.impl;

import com.tang.system.entity.SysPermission;
import com.tang.system.entity.SysRolePermission;
import com.tang.system.mapper.SysRolePermissionMapper;
import com.tang.system.service.ISysRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.security.Permission;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tangzy
 * @since 2024-05-08
 */
@Service
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission> implements ISysRolePermissionService {

    @Override
    public List<SysPermission> getUserPermissions(Long userId) {
        return this.baseMapper.selectUserPermissions(userId);
    }
}
